﻿Imports System.Windows.Forms

Public Class FormAskPassword

    Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
    'If Me.txtOldPassword.Text <> Utils.DataProtection.UnprotectData(My.Settings.Password) Then
    '  Utils.MsgBox.Message(My.Resources.WrongPassword)
    '  Exit Sub
    'End If
    Me.DialogResult = System.Windows.Forms.DialogResult.OK
    Me.Close()
    End Sub

    Private Sub Cancel_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cancel_Button.Click
        Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
        Me.Close()
    End Sub

  Public ReadOnly Property Password() As String
    Get
      Return Me.txtOldPassword.Text
    End Get
  End Property

  Private Sub FormAskPassword_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  End Sub
End Class
